<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我的项目圈-设计预评价</title>
		<link rel="stylesheet" type="text/css" href="../css/vue.css"/>
		<link rel="stylesheet" type="text/css" href="../css/common.css"/>
		<link rel="stylesheet" type="text/css" href="../css/myProject.css"/>
		<style>
		
		</style>
	</head>
	<body class="designCommentBox">
		<!--公共头部 start-->
		<div class="commonHead">
			<div class="commonHeadLeft">
				<a href="javascript:void(0);"><img src="../img/indexLogo.png" class="houseLogo"/></a>
			</div>
			<div class="commonHeadCenter">
				<ul>
					<li>
						<a class="active">项目圈</a>
					</li>
					<li>
						<a>材料数据库</a>
					</li>
					<li>
						<a>计算工具</a>
					</li>
					<li class="clear"></li>
				</ul>
			</div>
			<div class="commonHeadRight">
				<div class="infoCenter">
					<a href="javascript:void(0);">
						<span class="iconfont-tcl">&#xe643;</span>
						<span class="infoCenterText">消息中心</span>
						<span class="remindCircle"></span>
					</a>
				</div>
				<div class="loginInfo">
					<el-dropdown trigger="click">
						<span class="el-dropdown-link">
						    Kdd<i class="el-icon-caret-bottom el-icon--right"></i>
						</span>
						<el-dropdown-menu slot="dropdown">
						    <el-dropdown-item>账号设置</el-dropdown-item>
						    <el-dropdown-item>退出</el-dropdown-item>
						</el-dropdown-menu>
					</el-dropdown>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<!--公共头部 end-->
		
		<!--公共侧边栏 start-->
		<div class="commonSide">
			<div class="sideTitle">项目圈</div>
			<ul class="sideMenu">
				<li class="active">
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe611;</span>
						<span>我的项目</span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe60e;</span>
						<span>我的材料库</span>
					</a>
				</li>
				<li>
					<a href="javascript:void(0);">
						<span class="iconfont">&#xe610;</span>
						<span>我的收藏</span>
					</a>
				</li>
			</ul>
		</div>
		<!--公共侧边栏 end-->
		
		<!--内容 start-->
		<div class="content">
			<div class="contentTop">
				<a class="contentBack">
					<span class="iconfont">&#xe60a;</span>
					<span class="backText">返回</span>
				</a>
				<span class="contentSever">|</span>
				<div class="contentTitle">侨乡物业项目</div>
				<span class="contentTitleSever">></span>
				<div class="contentSecondTitle">设计预评价</div>
				<div class="help">
					<a href="javascript:void(0)">
						<span class="iconfont">&#xe60c;</span>
						<span>技术支持</span>						
					</a>
				</div>
				<div class="clear"></div>
			</div>
			
			<!--项目圈内容 start-->
			<div class="designComment">	
				
				<el-dialog title="材料控制清单" v-model="dialogTableVisible">
				  	<ul class="materialList">
				  		<!--标题 start-->
						<li class="listDec">
							<div class="materialType">材料类型</div>
							<div class="materialArea">材料面积</div>
							<div class="materialImg">图片</div>
							<div class="controlRequest">
								<div class="cRFirstMenu">控制要求</div>
								<div class="cRSecondMenu">
									<div class="wid20 fl tac">
										<p class="cRSecondMenuName">甲醛</p>
										<p>（mg/m2-h）</p>
									</div>
									<div class="wid20 fl tac">
										<p class="cRSecondMenuName">TOVC</p>
										<p>（mg/m2-h）</p>
									</div>
									<div class="wid20 fl tac">
										<p class="cRSecondMenuName">苯</p>
										<p>（mg/m2-h）</p>
									</div>
									<div class="wid20 fl tac">
										<p class="cRSecondMenuName">甲苯</p>
										<p>（mg/m2-h）</p>
									</div>
									<div class="wid20 fl tac">
										<p class="cRSecondMenuName">二甲苯</p>
										<p>（mg/m2-h）</p>
									</div>
									<div class="clear"></div>
								</div>
							</div>
							<div class="clear"></div>
						</li>
						<!--标题 end-->
						
						<!--内容 start-->
						<li class="materialDec" v-for="materialTableList in materialTable">
							<div class="materialType">{{materialTableList.materialName}}</div>
							<div class="materialArea">{{materialTableList.materialArea}}</div>
							<div class="materialImg">
								<img v-bind:src="materialTableList.src"/>
							</div>
							<div class="controlRequest">
								<div class="materialContentList">
									<div class="wid20 fl tac">
										<p class="materialContent">{{materialTableList.jiaquan}}</p>
									</div>
									<div class="wid20 fl tac">
										<p class="materialContent">{{materialTableList.TOVC}}</p>
									</div>
									<div class="wid20 fl tac">
										<p class="materialContent">{{materialTableList.ben}}</p>
									</div>
									<div class="wid20 fl tac">
										<p class="materialContent">{{materialTableList.jiaben}}</p>
									</div>
									<div class="wid20 fl tac">
										<p class="materialContent">{{materialTableList.erjiaben}}</p>
									</div>
									<div class="clear"></div>
								</div>
							</div>
							<div class="clear"></div>
						</li>
						
						<!--内容 end-->
					</ul>
					
					<!--分页器 start-->
					<div class="block">
						<div class="fr">
							 <span class="demonstration fl">调整每页显示条数</span>
						    <el-pagination
						      @size-change="handleSizeChange"
						      @current-change="handleCurrentChange"
						      :current-page="currentPage1"
						      :page-sizes="[10, 20, 30, 40]"
						      :page-size="10"
						      layout="sizes, prev, pager, next"
						      :total="50"
						      class="fl">
						    </el-pagination>
						    <div class="clear"></div>
						</div>
					   <div class="clear"></div>
					</div>
					<!--分页器 end-->
				</el-dialog>
				
				<div class="projectBox">	

					<div class="memberList">
						<div class="memberListBtnBox">
							<button class="createWay greenBtn">创建方案</button>
							<button class="contrast whiteBtn">对比</button>
							<button class="selected whiteBtn">选定</button>
						</div>
						
						<template>
							<div class="listDec">
								<div class="allSelecBox"><el-checkbox></el-checkbox></div>
								<div>方案ID</div>
								<div>评价方法</div>
								<div>创建时间</div>
								<div>状态</div>
								<div>操作</div>
								<div class="clear"></div>
							</div>
							<ul class="memberDec">
								<li v-for="caseSpecial in caseSpecialList">
									<el-checkbox></el-checkbox>
									<div>{{caseSpecial.caseID}}</div>
									<div>{{caseSpecial.caseWay}}</div>
									<div>{{caseSpecial.caseTime}}</div>
									<div>{{caseSpecial.caseStatus}}</div>
									<div>
										<a href="javascript:void(0);" class="edit">编辑</a>
										<a href="javascript:void(0);" class="checkControlForm modalBoxControl"><el-button type="text" @click="dialogTableVisible = true">查看材料控制清单</el-button></a>
									</div>
									<div class="clear"></div>
								</li>
							</ul>
						</template>
						
					</div>
					
					<!--分页器 start-->
					<div class="block">
						<div class="fr">
							 <span class="demonstration fl">调整每页显示条数</span>
						    <el-pagination
						      @size-change="handleSizeChange"
						      @current-change="handleCurrentChange"
						      :current-page="currentPage1"
						      :page-sizes="[10, 20, 30, 40]"
						      :page-size="10"
						      layout="sizes, prev, pager, next"
						      :total="50"
						      class="fl">
						    </el-pagination>
						    <div class="clear"></div>
						</div>
					   <div class="clear"></div>
					</div>
					<!--分页器 end-->
					
				</div>
				
			</div>
			<!--项目圈内容 end-->
		</div>
		<!--内容 end-->
		
	</body>
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/vue.js"></script>
	<script type="text/javascript" src="../js/vueComponent.js"></script>
	<script type="text/javascript" src="../js/component.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			//获取content宽度
			var contentWidth = $(window).innerWidth() - 180;
			$('.content').css('width',contentWidth + 'px');
			//获取content最小高度
			var contentMinHeight = $(window).innerHeight() - 60;
			$('.content').css('min-height',contentMinHeight + 'px');

			//获取content最小高度
			var projectBoxMinHeight = $(window).innerHeight() - 170;
			$('.designComment .projectBox').css('min-height',projectBoxMinHeight + 'px');
			
			//全选控制
			$('.allSelecBox .el-checkbox__input').click(function(){
				var self = $(this);
				if(self.hasClass('is-checked')){
					$('.memberDec li .el-checkbox__input').removeClass('is-checked');
				}else if(!self.hasClass('is-checked')){
					$('.memberDec li .el-checkbox__input').addClass('is-checked');
				}
			});
		});
		
		
		new Vue({
			el:'.loginInfo'
		});
		new Vue({
			el:'.designComment',
			data:function(){
				return{
					materialTable:[
				    	{
							materialName:'强化木地板',
							materialArea:'16.5',
							src:'../img/sourceImg.jpg',
							jiaquan: '0.3',
							TOVC: '0.5',
							ben: '0.6',
							jiaben: '0.8',
							erjiaben: '0.44'
				    	},
				    	{
							materialName:'强化木地板',
							materialArea:'16.5',
							src:'../img/sourceImg.jpg',
							jiaquan: '0.3',
							TOVC: '0.5',
							ben: '0.6',
							jiaben: '0.8',
							erjiaben: '0.44'
				    	},
				    ],
					caseSpecialList:[
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'-'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
						{
							caseID:'方案001',
							caseWay:'规定性指标',
							caseTime:'2017-10-11 10:30',
							caseStatus:'已选定'
						},
					],
					currentPage1: 1,
				 	gridData: [{
			          date: '2016-05-02',
			          name: '王小虎',
			          address: '上海市普陀区金沙江路 1518 弄'
			        }, {
			          date: '2016-05-04',
			          name: '王小虎',
			          address: '上海市普陀区金沙江路 1518 弄'
			        }, {
			          date: '2016-05-01',
			          name: '王小虎',
			          address: '上海市普陀区金沙江路 1518 弄'
			        }, {
			          date: '2016-05-03',
			          name: '王小虎',
			          address: '上海市普陀区金沙江路 1518 弄'
			        }],
				    dialogTableVisible: false,
				}
			},
			methods:{
				handleSizeChange(val) {
			        console.log(`每页 ${val} 条`);
			    },
			    handleCurrentChange(val) {
			        this.currentPage = val;
			        console.log(`当前页: ${val}`);
			    }
			}
		});
	</script>
</html>
